class AddLanguageToArgumentsAndResponses < ActiveRecord::Migration
  def self.up
    add_column :arguments, :language_id, :integer, :default => 1819
    add_column :responses, :language_id, :integer, :default => 1819
    
    execute "UPDATE arguments SET language_id=1819 WHERE language_id IS NULL"
    execute "UPDATE responses SET language_id=1819 WHERE language_id IS NULL"
  end

  def self.down
    remove_column :arguments, :language_id
    remove_column :responses, :language_id
  end
end
